﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="SQLI.WSS.WebControls.DataSource" Namespace="SQLI.WSS.WebControls.DataSource" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Control where parameter sample:<br />
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
            DataSourceID="WSSListDataSource1" DataTextField="LinkTitle" DataValueField="ID" 
            onselectedindexchanged="DropDownList1_SelectedIndexChanged">
            <asp:ListItem Value="7">Valeur 7</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" DataSourceID="WSSListDataSource2" 
            CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" 
            AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" PageSize="9">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <EditRowStyle BackColor="#999999" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        &nbsp;&nbsp;&nbsp;&nbsp;<br />
        <br />
        <asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="WSSListDataSource2"
            Height="50px" Width="125px">
        </asp:DetailsView>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />
        &nbsp; &nbsp;
        
        <cc1:WSSListDataSource ID="WSSListDataSource1" runat="server" 
            AllowDelete="True" AllowInsert="True" AllowUpdate="True" 
            InitialisationMode="UseExplicitServerUrl" ListName="Certifications" 
            SortWayField1="Increase" SortWayField2="Increase" 
            WebSiteUrl="http://sqli1366-1:1001">
            <Fields>
                <cc1:Field Name="Editeur" />
                <cc1:Field Name="LinkTitle" />
                <cc1:Field Name="R_x00e9_f_x00e9_rence" />
                <cc1:Field Name="Responsable" />
            </Fields>
        </cc1:WSSListDataSource>
            
        <cc1:WSSListDataSource ID="WSSListDataSource2" runat="server" 
            AllowDelete="True" AllowInsert="True" AllowUpdate="True" 
            InitialisationMode="UseExplicitServerUrl" ListName="Certifications" 
            SortWayField1="Increase" SortWayField2="Increase" ViewName="Par responsable" 
            WebSiteUrl="http://sqli1366-1:1001">
            <WhereParameters>
                <cc1:WhereParameter FieldName="ID" OperatorType="Equal" ParameterType="Control" 
                    Relation="AND" Value="DropDownList1" />
            </WhereParameters>
        </cc1:WSSListDataSource>
            
    </div>
    </form>
</body>
</html>
